<!doctype html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="robots" content="index, follow" />
        <meta name="google-translate-customization" content="9470f98a7d22e28e-3349f2400a23f82b-g80f0ab4964625c33-f" />
        <link href="<?php echo $img_url; ?>style/css/css-common.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo $img_url; ?>style/css/css-header.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo $img_url; ?>style/css/css-footer.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo $img_url; ?>style/css/css-rightcolumn.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo $img_url; ?>style/css/<?php echo $page_css; ?>.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo $img_url; ?>style/css/jquery.fancybox.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo $img_url; ?>style/css/ui.totop.css" rel="stylesheet" type="text/css" />
        <title><?php echo $page_title; ?></title>
        <meta name="description" content="<?php echo $page_description; ?>" />
        <meta name="keywords" content="<?php echo $page_keywords; ?>" />
        <meta content="EximGate" property="og:site_name" />
        <meta content="article" property="og:type" />
        <meta content="<?php echo $page_title; ?>" itemprop="headline" property="og:title" />
        <meta content="<?php echo $this->config->site_url().$this->uri->uri_string().$_SERVER['QUERY_STRING']; ?>" itemprop="url" property="og:url" />
        <meta content="<?php echo $page_image; ?>" itemprop="thumbnailUrl" property="og:image" />
        <meta content="<?php echo $page_description; ?>" itemprop="description" property="og:description" />
        <meta name="author" content="eximgate.vn" />
        <meta content="vi-VN" itemprop="inLanguage" />
        <link rel="shortcut icon" href="<?php echo $img_url; ?>style/images/logo.png" type="image/png" />
        <script src="<?php echo $img_url; ?>style/js/FE/jquery-1.9.1.min.js" type="text/javascript" charset="utf-8"></script>        
        <script src="<?php echo $img_url; ?>style/js/FE/weather-1.1.js" type="text/javascript" charset="utf-8"></script>                
        <script src="<?php echo $img_url; ?>style/js/FE/jquery.fancybox.js" type="text/javascript" charset="utf-8"></script>
        <script src="<?php echo $img_url; ?>style/js/FE/jquery.ui.totop.js" type="text/javascript" charset="utf-8"></script>
        <script src="<?php echo $img_url; ?>style/js/FE/common-1.0.js" type="text/javascript" charset="utf-8"></script>
        <script src="<?php echo $img_url; ?>style/js/FE/jquery.knob.js" type="text/javascript" charset="utf-8"></script>
        <script src="<?php echo $img_url; ?>style/js/FE/jquery.ui.widget.js" type="text/javascript" charset="utf-8"></script>
        <script src="<?php echo $img_url; ?>style/js/FE/jquery.iframe-transport.js" type="text/javascript" charset="utf-8"></script>
        <script src="<?php echo $img_url; ?>style/js/FE/jquery.fileupload.js" type="text/javascript" charset="utf-8"></script>
        <script src="<?php echo $img_url; ?>style/js/FE/adv-script.js" type="text/javascript" charset="utf-8"></script> 
        <script src="<?php echo $img_url; ?>style/js/FE/header.js" type="text/javascript" charset="utf-8"></script>

        <!-- Google Analytics -->
        <script>
            (function(i, s, o, g, r, a, m) {
                i['GoogleAnalyticsObject'] = r;
                i[r] = i[r] || function() {
                    (i[r].q = i[r].q || []).push(arguments)
                }, i[r].l = 1 * new Date();
                a = s.createElement(o),
                    m = s.getElementsByTagName(o)[0];
                a.async = 1;
                a.src = g;
                m.parentNode.insertBefore(a, m)
            })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

            ga('create', 'UA-56569253-1', 'auto');
            ga('send', 'pageview');
        </script>
        <!-- End Google Analytics -->
    </head>
    <body>        
        <!-- Facebook like, share & comment -->
        <div id="fb-root"></div>
        <script>
            window.fbAsyncInit = function() {
                // init the FB JS SDK
                FB.init({
                    appId: '612646102106378', // App ID from the app dashboard
                    status: true, // Check Facebook Login status
                    xfbml: true                                  // Look for social plugins on the page
                });

                // Additional initialization code such as adding Event Listeners goes here
            };

            // Load the SDK asynchronously
            (function() {
                // If we've already installed the SDK, we're done
                if (document.getElementById('facebook-jssdk')) {
                    return;
                }

                // Get the first script element, which we'll use to find the parent node
                var firstScriptElement = document.getElementsByTagName('script')[0];

                // Create a new script element and set its id
                var facebookJS = document.createElement('script');
                facebookJS.id = 'facebook-jssdk';

                // Set the new script's source to the source of the Facebook JS SDK
                facebookJS.src = '//connect.facebook.net/vi_VN/all.js';

                // Insert the Facebook JS SDK into the DOM
                firstScriptElement.parentNode.insertBefore(facebookJS, firstScriptElement);
            }());
        </script>                
        <script>
            (function(d, s, id) {
                var js, fjs = d.getElementsByTagName(s)[0];
                if (d.getElementById(id))
                    return;
                js = d.createElement(s);
                js.id = id;
                js.src = "//connect.facebook.net/vi_VN/all.js#xfbml=1&appId=612646102106378";
                fjs.parentNode.insertBefore(js, fjs);
            }(document, 'script', 'facebook-jssdk'));
        </script>

        <script>
            //Thong tin doanh nghiep

            var base_url = "<?php echo $base_url; ?>";

            //Execute ajax 
            function get_company_adv(page)
            {
                //get & bind autocomplete data from ajax		
                $.ajax({
                    type: "POST",
                    url: base_url + "thong-tin-doanh-nghiep/page/" + page,
                    data: "",
                    success: function(msg) {
                        $("#company-list").html(msg);
                    }
                });
            }

            window.onload = function() {
                //get_company_adv(1);	
            };
        </script>        

        <?php require APPPATH . "views/common/" . $page_header . ".php" ?>

        <!-- main -->
        <div id="wrapper">
            <div class="left">
                <?php require APPPATH . "views/" . $page_name . '.php' ?>
            </div>
            <div class="right">
                <!-- box: search -->
                <form name="frmSearch" id="frmSearch" method="POST" action="<?php echo $base_url; ?>tim-kiem" onSubmit="return submitSearch('<?php echo $base_url; ?>tim-kiem');">
                    <div id="box-search">
                        <input type="text" value="<?php if (isset($keyword)) echo urldecode($keyword); ?>" name="keyword" id="keyword" class="txt_Search" onfocus="this.value = '';" onblur="if (this.value == '') {
                            this.value = 'Nhập nội dung cần tìm';
                        }">
                        <input type="submit" name="btnSearch" class="btn_Search" value="">
                    </div>
                </form>
                <img src="<?php echo $img_url; ?>style/images/DHL_blackhawk.jpg" class="img_adv"/>
                <div class="adv-header"></div>
                    <img src="<?php echo $img_url; ?>style/images/banner/banner1_300x250.jpg" alt=""/>
                <div class="clearfix"></div>
                <!-- box: weather & gold -->
                <div id="weather-box">
                    <div class="weather-title">
                        <span class="title">Thời tiết</span>
                        <select name="cbo_city" id="cbo_city" class="cbo_city">
                            <?php
                            foreach ($aCityList as $arr) {
                                echo '<option value="' . $arr[0] . '">' . $arr[1] . '</option>';
                            }
                            ?>
                        </select>         
                    </div>
                    <div class="line"></div>
                    <ul class="weather">
                        <li>
                            <span class="day"><b>Hôm nay</b></span>
                            <div class="weather-icon"><img id="img_temperature" alt=""/></div>
                            <span class="text">
                                <b><span id="temperature"></span><sup>o</sup>C</b><br>
                                <span id="condition"></span>
                            </span>
                        </li>
                        <li class="vert-line"></li>
                        <li>
                            <span class="day"><b><span id="day1"></span></b></span>
                            <div class="weather-icon"><img id="img_temperature1" alt=""/></div>
                            <span class="text">
                                <b><span id="low1"></span><sup>o</sup>C - <span id="high1"></span><sup>o</sup>C</b><br>
                                <span id="condition1"></span>
                            </span>          
                        </li>
                        <li class="vert-line"></li>
                        <li>
                            <span class="day"><b><span id="day2"></span></b></span>
                            <div class="weather-icon"><img id="img_temperature2" alt=""/></div>
                            <span class="text">
                                <b><span id="low2"></span><sup>o</sup>C - <span id="high2"></span><sup>o</sup>C</b><br>
                                <span id="condition2"></span>
                            </span>          
                        </li>
                        <li class="vert-line"></li>
                        <li>
                            <span class="day"><b><span id="day3"></span></b></span>
                            <div class="weather-icon"><img id="img_temperature3" alt=""/></div>
                            <span class="text">
                                <b><span id="low3"></span><sup>o</sup>C - <span id="high3"></span><sup>o</sup>C</b><br>
                                <span id="condition3"></span>
                            </span>          
                        </li>
                    </ul>
                    <div class="clearfix"></div>  
                    <div class="white-space"></div>
                </div>    
                <div id="exrate-box">
                    <div id="ngoaite-box">
                        <div class="ngoaite-title">
                            <span class="title">Ngoại tệ</span>
                            <a id="view-exrate" href="#exrate-detail" class="more" caption="Nguồn: Vietcombank">Xem thêm</a>
                        </div>
                        <div class="ngoaite-content">
                            <table align="center" width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#dddfe3">
                                <tr>
                                    <td align="center" bgcolor="#FFFFFF"><b>Loại</b></td>
                                    <td align="center" bgcolor="#FFFFFF"><b>Mua</b></td>
                                    <td align="center" bgcolor="#FFFFFF"><b>Bán</b></td>
                                </tr>
                                <?php
                                $i = 1;
                                foreach ($exchange_rate['exrate'] as $exrate) {
                                    $currencyCode = $exrate['currencycode'];
                                    if ($currencyCode == "USD" || $currencyCode == "EUR") {
                                        $buy = (float) $exrate['buy'];
                                        $sell = (float) $exrate['sell'];
                                        ?>
                                        <tr>
                                            <td bgcolor="#FFFFFF"><?php echo $currencyCode; ?></td>
                                            <td bgcolor="#FFFFFF"><?php echo number_format($buy); ?></td>
                                            <td bgcolor="#FFFFFF"><?php echo number_format($sell); ?></td>
                                        </tr>
                                        <?php
                                    }
                                }
                                ?>
                            </table>
                        </div>
                        <img src="<?php echo $img_url; ?>style/images/img32.gif" alt="" class="ngoaite_icon"/>
                        <div id="exrate-detail" style="width:400px;display: none;">
                            <table align="center" width="100%" border="0" cellspacing="3" cellpadding="0" bgcolor="#dddfe3">
                                <tr>
                                    <td align="center" bgcolor="#FFFFFF"><b>Loại</b></td>
                                    <td align="center" bgcolor="#FFFFFF"><b>Mua</b></td>
                                    <td align="center" bgcolor="#FFFFFF"><b>Bán</b></td>
                                </tr>
                                <?php
                                $i = 1;
                                foreach ($exchange_rate['exrate'] as $exrate) {
                                    $currencyCode = $exrate['currencycode'];
                                    $buy = (float) $exrate['buy'];
                                    $sell = (float) $exrate['sell'];
                                    if ($buy == 0 || $sell == 0)
                                        continue;
                                    ?>
                                    <tr>
                                        <td bgcolor="#FFFFFF"><?php echo $currencyCode; ?></td>
                                        <td bgcolor="#FFFFFF"><?php echo number_format($buy); ?></td>
                                        <td bgcolor="#FFFFFF"><?php echo number_format($sell); ?></td>
                                    </tr>
                                    <?php
                                }
                                ?>
                            </table>
                        </div>
                    </div>
                    <div id="gold-box">
                        <div class="gold-title">
                            <span class="title">Giá vàng</span>                                   
                        </div>
                        <div class="gold-content">
                            <table align="center" width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#dddfe3">
                                <tr>
                                    <td align="center" bgcolor="#FFFFFF"><b>Loại</b></td>
                                    <td align="center" bgcolor="#FFFFFF"><b>Mua</b></td>
                                    <td align="center" bgcolor="#FFFFFF"><b>Bán</b></td>
                                </tr>
                                <tr>
                                    <td align="left" bgcolor="#FFFFFF">SJC (10 chỉ)</td>
                                    <td bgcolor="#FFFFFF"><?php echo substr($gold["buy1"], 0, 5); ?></td>
                                    <td bgcolor="#FFFFFF"><?php echo substr($gold["sell1"], 0, 5); ?></td>
                                </tr>
                                <tr>
                                    <td align="left" bgcolor="#FFFFFF">SJC (1,2,5 chỉ)</td>
                                    <td bgcolor="#FFFFFF"><?php echo substr($gold["buy2"], 0, 5); ?></td>
                                    <td bgcolor="#FFFFFF"><?php echo substr($gold["sell2"], 0, 5); ?></td>
                                </tr>
                            </table>
                        </div>
                        <img src="<?php echo $img_url; ?>style/images/img33.gif" alt="" class="gold_icon"/>        
                    </div>      
                </div>    
                <!-- box: thong tin doanh nghiep -->
                <?php require APPPATH . "views/common/box_thongtindoanhnghiep.php" ?>
            </div>    
        </div>
    </div>	
    <?php require APPPATH . "views/common/" . $page_footer . ".php" ?>
    <div class="wrapPopup" id="contactForm" style="display:none;">
        <div class="popup">
            <div class="centerPopup"> 
                <section>
                    <header>
                        <img src="<?php echo $img_url; ?>/style/images/img1.jpg"/>
                        <h1>Chia sẻ liên kết qua e-mail</h1>
                        <a href="javascript:;" title="Đóng" class="closepp" onclick="closePopup('contactForm')"></a>
                    </header>
                    <div class="content">
                        <form class="frm-1" id="" method="">
                            <p>Liên kết</p>
                            <h2 class="title-post" title="<?php echo $current_url; ?>"><?php echo $current_url; ?></h2>
                            <ul>
                                    <!-- <li><label for="txt-mail">Email (*)</label><input class="txt-1 check_blank sender " type="text" name="txt-mail" id="txt-mail"/></li> -->
                                <li>
                                    <label for="txt-name">Họ &amp; tên của bạn (*)</label><input class="txt-1 check_blank name" type="text" name="txt-name" id="txt-name">
                                    <p class="error"></p>
                                </li>
                                <li>
                                    <label for="txt-mail">Email người nhận (*)</label><input class="txt-1 check_blank receiver" type="text" name="txt-mail" id="txt-mail">
                                    <p class="error"></p>
                                </li>
                                <li>
                                    <label for="txt-content">Thông điệp gửi kèm</label><textarea class="txtare-1 check_blank email-content" id="txt-content" name="txt-content" placeholder="Nội dung tốt thiểu 20 kí tự."></textarea>
                                    <p class="error"></p>
                                </li>
                                <!-- <li>
                                        <label for="txt-code">Mã xác nhận</label>
                                        <input class="txt-1 txt-2 captcha" type="text" name="txt-code" id="txt-code"/>
                                </li> -->

                                <li><input class="btn-3" type="button" name="btn-feedback" value="Gửi Bài" id="btn-feedback" onclick="sendEmail()"></li>
                            </ul>
                        </form>
                    </div>
                </section>
            </div>
        </div>
    </div>
</body>
</html>